package com.meituan.sdk.model.ddzh.common.pageQuerySessionTokenMapping;

import com.meituan.sdk.annotations.ApiMeta;
import com.google.gson.reflect.TypeToken;
import javax.validation.constraints.NotBlank;
import java.lang.reflect.Type;
import com.meituan.sdk.internal.utils.JsonUtil;
import com.google.gson.annotations.SerializedName;
import javax.validation.constraints.NotNull;
import com.meituan.sdk.MeituanResponse;
import com.meituan.sdk.MeituanRequest;

/**
* 查询已迁移原北极星session和合作中心token的映射关系
* This file was automatically generated.
*/
@ApiMeta(
    path = "/ddzh/common/datamigration/session/pageQuerySessionTokenMapping",
    businessId = 58,
    apiVersion = "10000",
    apiName = "page_query_session_token_mapping",
    needAuth = false
)
public class PageQuerySessionTokenMappingRequest implements MeituanRequest<PageQuerySessionTokenMappingResponse> {
    /**
    * <p data-diff-id="ct-diff-id-21bdd9ab-f3df-49dd-9d8d-b6b86a899f85">分页查询偏移值，最小为0</p>
    */
    @NotNull(message = "offset不能为空")
    @SerializedName("offset")
    private Integer offset;
    /**
    * <p data-diff-id="ct-diff-id-d8d7bf3e-442e-40d0-9ce0-2945717546df">页大小，大于0，小于等于100</p>
    */
    @NotNull(message = "limit不能为空")
    @SerializedName("limit")
    private Integer limit;
    /**
    * <p data-diff-id="ct-diff-id-3d202766-2ac1-419d-a745-ea39d486f955">已迁移成功的原北极星session</p>
    */
    @NotBlank(message = "session不能为空")
    @SerializedName("session")
    private String session;

    public Integer getOffset() {
        return offset;
    }
    public void setOffset(Integer offset) {
        this.offset = offset;
    }
    public Integer getLimit() {
        return limit;
    }
    public void setLimit(Integer limit) {
        this.limit = limit;
    }
    public String getSession() {
        return session;
    }
    public void setSession(String session) {
        this.session = session;
    }


    @Override
    public MeituanResponse<PageQuerySessionTokenMappingResponse> deserializeResponse(String response) {
        Type type = new TypeToken<MeituanResponse<PageQuerySessionTokenMappingResponse>>(){}.getType();
        return JsonUtil.fromJson(response, type);
    }
    @Override
    public String serializeToJson() {
        return JsonUtil.toJson(this);
    }


    @Override
    public String toString() {
        return "PageQuerySessionTokenMappingRequest{" + "offset=" + offset + "," + "limit=" + limit + "," + "session=" + session + "}";
    }
}
